package com.lianbang.pharmacy.adapter

import cn.ubest.mvvmcore.utils.ResourcesUtils
import cn.ubest.mvvmcore.utils.SpanUtils
import com.chad.library.adapter.base.BaseNodeAdapter
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.entity.node.BaseNode
import com.chad.library.adapter.base.provider.BaseNodeProvider
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.lianbang.pharmacy.R
import com.lianbang.pharmacy.bean.ShopCarHeaderBean

/**
 * Created by maoqi on 2020/12/13.
 */
class ShopCarItemListAdapter : BaseQuickAdapter<String,BaseViewHolder>(R.layout.item_shop_car_item_list) {
    override fun convert(helper: BaseViewHolder, item: String) {
        helper.setText(R.id.tv_title, "连花清瘟胶囊")
            .setText(R.id.tv_standard, "10mgx7片/盒")
            .setText(
                R.id.tv_price,
                SpanUtils()
                    .append("¥")
                    .append("136.00")
                    .setBold()
                    .setFontSize(14, true)
                    .create()
            )
            .setBackgroundColor(R.id.iv_img, ResourcesUtils.getColor(R.color.black))
    }


}